# coding=UTF-8
from django.conf.urls import patterns, include, url

from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('account.views',
                       url(r'^$', 'index'),
                       url(r'^user/(?P<userId>\d+)/$', 'get_user_msg'),
                       url(r'^profile/$', 'get_profile'),
                       url(r'^profile/(?P<userId>\d+)/uploadimg/$', 'upload_portraitUri'),
                       url(r'^user/(?P<userId>\d+)/sharing/$', 'get_user_sharing'),
                       url(r'^profile/collection/$', 'get_user_collection'),

                       url(r'^register/email/(?P<email>.+)/$', 'isEmailExist'),
                       url(r'^login_page/$','show_login_page'),
                       url(r'^logout/$', 'logout'),

                       url(r'^messages/$', 'get_messages'),

                       # url(r'^loginbyemail/$', 'loginbyemail'),
                       # url(r'^register/email/(?P<email>.+)/lovertoken/(?P<lovertoken>.+)$','register'),
                       # url(r'^loginbyuserid/(?P<userId>\d+)/logintoken/(?P<logintoken>.+)$', 'loginbyuserid'),
                       )
